package com.ch.config.server;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * @author cj-ch
 * @date 2018/4/17 下午7:23
 */
// 启用spring cloud config
@EnableConfigServer
//注册到服务治理
@EnableDiscoveryClient
@SpringBootApplication
public class ChConfigServerApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder(ChConfigServerApplication.class)
                .web(true)
                .run(args);
    }
}
